home *** CD-ROM | disk | FTP | other *** search
- Path: rgfn.epcc.edu!ai282
- From: ai282@rgfn.epcc.edu (Dan Tulloh)
- Newsgroups: comp.lang.c
- Subject: Re: Leap Years
- Date: Fri, 16 Feb 1996 16:24:19 GMT
- Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX
- Message-ID: <1996Feb16.162419.27784@rgfn.epcc.edu>
- X-Newsreader: TIN [version 1.2 PL2]
- References: <8BA8405.02C70020E1.uuout@sourcebbs.com> <4fsk14$jo2@kocrsv08.delcoelect.com>
- Distribution: usa
-
- Richard E. Fiegle (refiegle@mail.delcoelect.com) wrote:
- > david.mohorn@sourcebbs.com (DAVID MOHORN) wrote:
- > >How do you feature out leap years? If its evenly divisible by 400 and
- > >4?
- > >
-
- > Anything divisible by 4 is already guaranteed to be
- > divisible by 400.
-
- uh...I think you meant that anything divisible by 400
- is guaranteed to be divisible by 4.
-
- Any year that is evenly divisible by 4 is a leap year
- unless it is a century year, in which case it needs to
- be evenly divisble by 400. ie, 1996 and 2000 are
- leap years, but 1900 is not.
-
- Dan
-